<h1>Change Your Profile</h1>

<?php echo error_messages_for('users')?>

        <h2 class='tab'>Your Profile</h2>      
    
<?php echo form_tag('profile',array('id'=>'profile-form'))?>
<?php echo hidden_field('users','id')?>

<table border="0" cellspacing="5" cellpadding="5">
    <tr>
        <td>
            <label for='users_first_name'><span style='color:red'>*</span> First Name:</label>
                <?php echo text_field('users','first_name',
                                     array('class'=>'required',
                                            'size'=>40, 
                                            'title'=>'Please enter first name'))?>

        <label for='users_last_name'><span style='color:red'>*</span> Last Name:</label>
            <?php echo text_field('users','last_name',
                                 array('class'=>'required',
                                        'size'=>40,
                                        'title'=>'Please enter last name'))?>

        <label for='users_email'><span style='color:red'>*</span> Email:</label>
            <?php echo text_field('users','email',
                                array('class'=>'validate-email',
                                      'size'=>40,
                                      'title'=>'Please enter a valid email'))?></td>

        <td>
            <label for='users_user_password'>Old Password: <span style='font-size:xx-small'>(leave required to keep same password)</span></label><?php echo password_field('users','user_password')?>

        <label for='users_new_password'>New Password:</label><?php echo password_field('users','new_password')?>

        <label for='users_user_password_confirm'>Confirm New Password:</label>
        <?php echo password_field('users','user_password_confirm')?></td>
    </tr>
</table>

<div id='submit'><?php echo submit_tag('Submit')?></div>
<?php echo end_form_tag()?>
<?php echo validate_form('profile-form',array('useTitles'=>'true')) ?>


